package com.panshi.api;

import com.panshi.vo.R;
import com.panshi.vo.ThLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient(value = "hasbei-sys.com",path = "/api/sys/log")
public interface SysLogApi {

    List<ThLog> listThLog();

    ThLog getThLog(@PathVariable("id")Integer id);

    R addThLog(@RequestBody ThLog thLog);

    R editThLog(@RequestBody ThLog thLog);

    R delThLog(@PathVariable("id")Integer id);

}
